<?php
	
	require_once("fta.201003310000/fta.php");
	fta_registerModules(
		array(
		"site/fta/config",
		"site/components/MAISponsors"
		)
	);
	
	function renderSponsorItem($item){
		
		if(strlen($item->content) > 0){
			?>
			<a href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>" target="_blank">
				<img src="/html/blob.php?documentCode=<?php echo $item->documentcode; ?>&filetypecode=2&elementId=10104" />
			</a>
			<?php
		}
		?>
		<div class="sponsorContent">
        <a href="<?php echo $item->url; ?>" alt="<?php echo $item->title; ?>" target="_blank" ><h3><?php echo $item->title; ?></h3></a>
        <?php echo $item->shortdescription; ?>
        </div>
		<?php
		
	}
	
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="Keywords" content="<?php echo $metadataKeywords; ?>" />
<meta name="Description" content="<?php echo $metadataDescription; ?>" />

<title><?php echo $pageTitle; ?> | Mairangi Arts Centre</title>

<?php include ("includes/external-files.php"); ?>


<?php include ("includes/analytics.php"); ?>   
</head>

<body id="sponsors">



<?php include ("includes/head.php"); ?>





<div id="container">


	<div id="content">
    	

         
        
        <div id="content-blocks">
        <h1><?php echo $pageHeading; ?></h1>
        
        
            <?php echo $pageContent; ?>
            
            <?php echo mai_renderSponsors(); ?>
            
			



		</div><!-- Content-blocks ends -->
        
    
    
    
   </div><!-- Content ends -->


   
    
</div><!-- Container ends -->




<?php include ("includes/foot.php"); ?>





</body>

</html>